package com.ridu.project.beshid.entity;

import lombok.*;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by Administrator on 2017/2/14.
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Entity
@Table(name = "besh_user", catalog = "besh_id_edu")
public class BeshUserEntity extends BaseEntity {
    @Basic
    @Column(name = "besh_id",columnDefinition = "varchar(128) COMMENT 'besh_id'")
    private String beshId;
    @Basic
    @Column(name = "password",columnDefinition = "varchar(128) COMMENT '登录密码'")
    private String password;
    @Basic
    @Column(name = "salt",columnDefinition = "varchar(128) COMMENT '盐值'")
    private String salt;
    @Basic
    @Column(name = "roles",columnDefinition = "varchar(128) COMMENT '角色'")
    private String roles;
    @Basic
    @Column(name = "access_token",columnDefinition = "varchar(128) COMMENT '访问码'")
    private String accessToken;
    @Basic
    @Column(name = "mobile_token",columnDefinition = "varchar(128) COMMENT '手机令牌'")
    private String mobileToken;
}
